import { defineStore } from 'pinia'
import { ref } from 'vue'
const useTokenStore = defineStore('token', ()=>{
    // sys的token
const token=ref("")
// 客户的token
const userToken=ref("")

const removeToken=()=>{
    token.value=""
}
const removeUserToken=()=>{
    userToken.value=""
}


return {token,removeToken,userToken,removeUserToken}
},

{persist: true}



)

export default useTokenStore

